package com.atguigu.gulimall.search.service;

import com.atguigu.gulimall.search.entity.Goods;
import com.atguigu.gulimall.search.vo.SearchParamVo;
import com.atguigu.gulimall.search.vo.SearchResponseVo;

/**
 * @author nicc
 * @version 1.0
 * @className SearchBizService
 * @date 2022-10-13 03:45
 */
public interface SearchBizService {

    /**
     * 把商品信息保存到es中
     * @param goods
     */
    void onSaleGoods(Goods goods);

    /**
     * 删除es中指定skuId商品的信息
     * @param skuId
     */
    void cancelSaleGoods(Long skuId);

    /**
     * 商品检索
     * @param paramVo
     * @return
     */
    SearchResponseVo search(SearchParamVo paramVo);

    /**
     * 更新热度分
     * @param skuId
     * @param hotScore
     */
    void updateHotScore(Long skuId, Long hotScore);
}
